package com.xdjd.mobile.business.entity.model.member;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
  表:member_trade_record 充值提现记录表
*/
@Table(name = "member_trade_record")
@SuppressWarnings("serial")
public class MemberTradeRecordPo implements Serializable {

	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id; 
	private String recordNo; // 记录编号
	private Byte recordType; // 记录类型（0：充值，1：提现）
	private Long memberId; // 用户id
	private Byte channel; // 渠道（0：支付宝，1：微信）
	private Date recordDate; // 记录日期
	private Long amount; // 金额（单位 分）
	private Byte status; // 状态（0：失败，1：成功）
	private Date createTime; 
	private Date modifyTime; 

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return this.id;
	}

	/** 设置 记录编号,对应字段 member_trade_record.record_no */
	public void setRecordNo(String recordNo) {
		this.recordNo = recordNo;
	}
	/** 获取 记录编号,对应字段 member_trade_record.record_no */
	public String getRecordNo() {
		return this.recordNo;
	}

	/** 设置 记录类型（0：充值，1：提现）,对应字段 member_trade_record.record_type */
	public void setRecordType(Byte recordType) {
		this.recordType = recordType;
	}
	/** 获取 记录类型（0：充值，1：提现）,对应字段 member_trade_record.record_type */
	public Byte getRecordType() {
		return this.recordType;
	}

	/** 设置 用户id,对应字段 member_trade_record.member_id */
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	/** 获取 用户id,对应字段 member_trade_record.member_id */
	public Long getMemberId() {
		return this.memberId;
	}

	/** 设置 渠道（0：支付宝，1：微信）,对应字段 member_trade_record.channel */
	public void setChannel(Byte channel) {
		this.channel = channel;
	}
	/** 获取 渠道（0：支付宝，1：微信）,对应字段 member_trade_record.channel */
	public Byte getChannel() {
		return this.channel;
	}

	/** 设置 记录日期,对应字段 member_trade_record.record_date */
	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}
	/** 获取 记录日期,对应字段 member_trade_record.record_date */
	public Date getRecordDate() {
		return this.recordDate;
	}

	/** 设置 金额（单位 分）,对应字段 member_trade_record.amount */
	public void setAmount(Long amount) {
		this.amount = amount;
	}
	/** 获取 金额（单位 分）,对应字段 member_trade_record.amount */
	public Long getAmount() {
		return this.amount;
	}

	/** 设置 状态（0：失败，1：成功）,对应字段 member_trade_record.status */
	public void setStatus(Byte status) {
		this.status = status;
	}
	/** 获取 状态（0：失败，1：成功）,对应字段 member_trade_record.status */
	public Byte getStatus() {
		return this.status;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}
	public Date getModifyTime() {
		return this.modifyTime;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MemberTradeRecordPo other = (MemberTradeRecordPo) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
    @Override
	public String toString() {
    	StringBuilder sb = new StringBuilder();
        sb.append("MemberTradeRecordPo [");
        		        sb.append("id=").append(id);
        		sb.append(", ");        sb.append("recordNo=").append(recordNo);
        		sb.append(", ");        sb.append("recordType=").append(recordType);
        		sb.append(", ");        sb.append("memberId=").append(memberId);
        		sb.append(", ");        sb.append("channel=").append(channel);
        		sb.append(", ");        sb.append("recordDate=").append(recordDate);
        		sb.append(", ");        sb.append("amount=").append(amount);
        		sb.append(", ");        sb.append("status=").append(status);
        		sb.append(", ");        sb.append("createTime=").append(createTime);
        		sb.append(", ");        sb.append("modifyTime=").append(modifyTime);
                sb.append("]");
		return sb.toString();
	}

}